package com.springboot.demo.service;

import com.springboot.demo.entity.FineMsg;
import com.springboot.demo.mapper.FineManageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FineMsgService {
    @Autowired
    FineManageMapper fineManageMapper;

     public List<FineMsg> getFineMsg(){
        return fineManageMapper.getFineMsg();
    }

    public void updatefine(String phone,int fine,String starttime,long bookid){
         fineManageMapper.updatefine(phone, fine, starttime, bookid);
    }
}
